package com.atguigu.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryBrandRelationEntity;

import java.util.List;
import java.util.Map;

/**
 * 品牌分类关联
 *
 * @author BOOM
 * @email 2495399053@qq.com
 * @date 2020-07-10 15:09:19
 */
public interface CategoryBrandRelationService extends IService<CategoryBrandRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);


    List<CategoryBrandRelationEntity> getCategoryBrandRelationByBrandId(Map<String,Object> params);

    void saveDetail(CategoryBrandRelationEntity categoryBrandRelation);

    void updateDetailsById(CategoryBrandRelationEntity categoryBrandRelation);

    CategoryBrandRelationEntity findOneById(Long id);

    void updateBrandNameByBrandId(Long brandId,String brandName);

    void updateCateNameByCatId(Long catId,String CateName);

    void deleteByBrandId(Long brandId);

    void deleteByCatId(Long catId);
}

